package com.gsafety.spring.annotation;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.sql.SQLOutput;

@Configuration
public class PersonConfiguration {

    @Bean(name = "person")
    public Person getPerson() {
        System.out.println("HELLO");
        Person person = new Person();
        person.setId(20);
        person.setName("zhangsan");
        return person;
    }

}
